package gui;

import javax.swing.JPanel;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class VnVideoRegistrado extends VnVideo {

	VAgregarALista agregarALista;
	VComentarioNuevo comentarioNuevo;
	
	/**
	 * Create the panel.
	 */
	public VnVideoRegistrado() {
		GridBagLayout gridBagLayout = (GridBagLayout) getLayout();
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0};
		
		JButton btnNewButton = new JButton("Lista...");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				agregarALista.setVisible(true);
			}
		});
		getAcciones().add(btnNewButton);
		
		agregarALista = new VAgregarALista();
		agregarALista.setVisible(false);
		GridBagConstraints gbc_agregarALista = new GridBagConstraints();
		gbc_agregarALista.insets = new Insets(0, 0, 5, 5);
		gbc_agregarALista.fill = GridBagConstraints.BOTH;
		gbc_agregarALista.gridx = 0;
		gbc_agregarALista.gridy = 6;
		add(agregarALista, gbc_agregarALista);
		
		comentarioNuevo = new VComentarioNuevo();
		GridBagConstraints gbc_comentarioNuevo = new GridBagConstraints();
		gbc_comentarioNuevo.insets = new Insets(0, 0, 5, 5);
		gbc_comentarioNuevo.fill = GridBagConstraints.BOTH;
		gbc_comentarioNuevo.gridx = 0;
		gbc_comentarioNuevo.gridy = 7;
		add(comentarioNuevo, gbc_comentarioNuevo);

	}

}
